package leetCode.offer20;

public class Solution1 implements Solution{

    @Override
    public boolean isNumber(String s) {
        for(char a:s.toCharArray()) {
            if((a>='a'&&a<='z')||(a>='A'&&a<='Z')) {
                if(a!='e'&&a!='E') return false;
            }
        }
        try {
            Double.parseDouble(s);
        }catch (Exception e){
            return false;
        }
        return true;
    }
}
